<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>ZBBS后台管理系统</title>
<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="{{url('admin')}}/css/style.css" />
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<script src="{{url('admin')}}/js/jquery.js"></script>
<script src="{{url('admin')}}/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
    (function($){
        $(window).load(function(){
            
            $("a[rel='load-content']").click(function(e){
                e.preventDefault();
                var url=$(this).attr("href");
                $.get(url,function(data){
                    $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
                    //scroll-to appended content 
                    $(".content").mCustomScrollbar("scrollTo","h2:last");
                });
            });
            
            $(".content").delegate("a[href='top']","click",function(e){
                e.preventDefault();
                $(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
            });
            
        });
    })(jQuery);
</script>
</head>
<body>
<!--header-->
<header>
 <h1><img src="{{url('admin')}}/images/admin_logo.png"/></h1>
 <ul class="rt_nav">
  <li><a href="{{url('')}}" target="_blank" class="website_icon">站点首页</a></li>
  <li><a href="#" class="admin_icon">DeathGhost</a></li>
  <li><a href="#" class="set_icon">账号设置</a></li>
  <li><a href="{{route('admin.logout')}}" class="quit_icon">安全退出</a></li>
 </ul>
</header>

<!--aside nav-->
<aside class="lt_aside_nav content mCustomScrollbar">
 <h2><a href="{{route('admin.home')}}">起始页</a></h2>
 <ul>
  @foreach($menu as $k=>$v)
  <li>
   <dl>
    <dt>{{$k}}</dt>
    @foreach($v as $kk=>$vv)
    <dd><a href="{{route($kk)}}" {{ url()->current() == route($kk) ? "class=active" : '' }}>{{$vv}}</a></dd>
    @endforeach
   </dl>
  </li>
  @endforeach
  <li>
   <p class="btm_infor">© ZBBS </p>
  </li>
 </ul>
</aside>

<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">

  @yield('content')

 </div>
</section>
</body>
</html>
